FROM nginx:1.19.0

MAINTAINER maoxiaodong

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

EXPOSE 80

RUN rm -rf /usr/share/nginx/html/*

ADD ./dist /usr/share/nginx/html

# run nginx
CMD ["nginx", "-g", "daemon off;"]